package com.chengh.springboot.webservice.service.impl;

import com.chengh.springboot.webservice.entity.Student;
import com.chengh.springboot.webservice.service.StudentService;
import org.springframework.stereotype.Service;

import javax.jws.WebService;
import java.util.ArrayList;
import java.util.List;

@Service
@WebService(endpointInterface = "com.chengh.springboot.webservice.service.StudentService")
public class StudentServiceImpl implements StudentService {
    @Override
    public List<Student> getList(Student student) {
        student.setName("张三");
        student.setSex("男");
        List<Student> students = new ArrayList<>(1);
        students.add(student);
        return students;
    }
}
